package com.vhall.component.entity.rbac.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author jingwen.li
 * @date 2022/3/7
 */
@Data
public class ActionAddChildReqVO implements Serializable {

    private static final long serialVersionUID = 5133718975309957764L;

    @NotNull(message = "父ID不能为空")
    @ApiModelProperty(value = "上一级id")
    @JsonProperty("pid")
    @ParamName("pid")
    private String pid;

    @NotBlank(message = "操作名称不能为空")
    @ApiModelProperty(value = "方法名称")
    @JsonProperty("action_name")
    @ParamName("action_name")
    private String actionName;

    @NotBlank(message = "操作标识不能为空")
    @ApiModelProperty(value = "方法名称")
    @JsonProperty("action_tag")
    @ParamName("action_tag")
    private String actionTag;

    @ApiModelProperty(value = "描述")
    @JsonProperty("desc")
    @ParamName("desc")
    private String desc;
}
